package com.mlf.singleton.singleton.spring;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

@Service
public class UserService implements InitializingBean {

    @PostConstruct
    public void init() {
//        System.out.println("初始化回调");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("我是uservice afterpropertiesSet方法");
    }
}
